from rest_framework.serializers import ModelSerializer
from users.models import *
# class Newser(ModelSerializer):
#     class Meta:
#         model=New
#         fields='__all__'

# class Adser(serializers.ModelSerializer):
#     class Meta:
#         model=Ad
#         fields='__all__'
# class TypeModel(ModelSerializer):
#     class Meta:
#         model = Type
#         fields = '__all__'
#
#
# class BooksModel(ModelSerializer):
#     class Meta:
#         model = Books
#         fields = '__all__'
# class ShowBooks(ModelSerializer):
#     eg = TypeModel()
#
#     class Meta:
#         model = Books
#         fields = '__all__'
class Actorser(ModelSerializer):
    class Meta:
        model = Actor
        fields="__all__"

class Movieser(ModelSerializer):
    class Meta:
        model = Movie
        fields="__all__"

class Moviesers(ModelSerializer):
    class Meta:
        model = Movie
        fields="__all__"

class Teacherser(ModelSerializer):
    class Meta:
        model = Teacher
        fields="__all__"

class Studentser(ModelSerializer):
    class Meta:
        model = Student
        fields="__all__"